package com.xiaoq.push.entity;

import java.util.List;

import org.mongodb.morphia.annotations.Entity;

import com.xiaoq.MongoEntity;

@Entity(value="messages_collection", noClassnameStored=true) // 采用Morphia作为mongo client时
public class MessageEntity extends MongoEntity {

	private String msgCatalogueCode; // 消息目录编码,1:系统通知;2:小店通知;3:小店优惠促销活动;4:小站分享;5:聊天消息

	private String msgTitle; // 消息标题

	private String msgLinkUrl; // 消息链接url

	private int msgChannelType; // 消息通道类型 1:站内消息;2:短信;3:微信;

	private String msgSenderId; // 发送者id

	private String senderSubject; // 发送者主体: 1:storekeeper,店主;2:格调生活系统
									// lifestyle365

	private String msgContent; // 消息内容

	private String msgThumbnailUrl; // 消息左侧的缩略图url

	private String cornershopId; // 发送消息的小店Id

	private String cornershopName; // 发送消息的小店名称

	private List<TargetUserDTO4ReceiveMsg> targetUserDTOs; // 接收消息的用户对象集合
	
	private String mesTarId; //消息对物体的详细Id(票Id,优惠券Id等)
	
	private String mesType; //消息对象的具体类别（1系统消息，2,门票订单，3，讲解员订单，4，优惠劵）
	
	private String msgCatalogueName; // 板块名称
	
	private String mesUrl; // 消息缩略图
	
	

	public String getMesUrl() {
		return mesUrl;
	}

	public void setMesUrl(String mesUrl) {
		this.mesUrl = mesUrl;
	}

	public String getMsgCatalogueCode() {
		return msgCatalogueCode;
	}

	public void setMsgCatalogueCode(String msgCatalogueCode) {
		this.msgCatalogueCode = msgCatalogueCode;
	}

	public String getMsgTitle() {
		return msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	public String getMsgLinkUrl() {
		return msgLinkUrl;
	}

	public void setMsgLinkUrl(String msgLinkUrl) {
		this.msgLinkUrl = msgLinkUrl;
	}

	public int getMsgChannelType() {
		return msgChannelType;
	}

	public void setMsgChannelType(int msgChannelType) {
		this.msgChannelType = msgChannelType;
	}

	public String getMsgSenderId() {
		return msgSenderId;
	}

	public void setMsgSenderId(String msgSenderId) {
		this.msgSenderId = msgSenderId;
	}

	public String getSenderSubject() {
		return senderSubject;
	}

	public void setSenderSubject(String senderSubject) {
		this.senderSubject = senderSubject;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public String getMsgThumbnailUrl() {
		return msgThumbnailUrl;
	}

	public void setMsgThumbnailUrl(String msgThumbnailUrl) {
		this.msgThumbnailUrl = msgThumbnailUrl;
	}

	public String getCornershopId() {
		return cornershopId;
	}

	public void setCornershopId(String cornershopId) {
		this.cornershopId = cornershopId;
	}

	public String getCornershopName() {
		return cornershopName;
	}

	public void setCornershopName(String cornershopName) {
		this.cornershopName = cornershopName;
	}

	public List<TargetUserDTO4ReceiveMsg> getTargetUserDTOs() {
		return targetUserDTOs;
	}

	public void setTargetUserDTOs(List<TargetUserDTO4ReceiveMsg> targetUserDTOs) {
		this.targetUserDTOs = targetUserDTOs;
	}

	public String getMesTarId() {
		return mesTarId;
	}

	public void setMesTarId(String mesTarId) {
		this.mesTarId = mesTarId;
	}

	public String getMesType() {
		return mesType;
	}

	public void setMesType(String mesType) {
		this.mesType = mesType;
	}

	public String getMsgCatalogueName() {
		return msgCatalogueName;
	}

	public void setMsgCatalogueName(String msgCatalogueName) {
		this.msgCatalogueName = msgCatalogueName;
	}
	
	

}
